package com.accp.biz.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.accp.biz.RoleBiz;
import com.accp.dao.RoleDao;
import com.accp.entity.Role;
@Service
public class RoleBizImpl implements RoleBiz {
	@Resource
	private RoleDao roleDao;
	
	@Override
	public boolean addRole(Role r) {
		return roleDao.addRole(r)>0;
	}

	@Override
	public boolean updateRole(Role r) {
		return roleDao.updateRole(r)>0;
	}
	/*
	 * 查询角色列表
	 */
	@Override
	public List<Role> queryRoles() {
		return roleDao.queryRoles();
	}

}
